﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace SocialStoreFront.Domain.Shawn
{
    public class Product
    {
        [Key]
        public int Id { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public decimal Price { get; set; }
        public virtual ICollection<Order> Orders { get; set; }
    }

    public class Customer
    {
        [Key]
        public int Id { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string Address1 { get; set; }
        public string Address2 { get; set; }
        public string City { get; set; }
        public string State { get; set; }
        public string Zip { get; set; }
    }

    public class Order
    {
        [Key]
        public int Id { get; set; }

        public virtual ICollection<Product> Products { get; set; }
        public virtual Customer Customer { get; set; }
    }
}
